﻿using jinmaMesProxy.DataAccess;

namespace jinmaMesProxy.Model
{


    public abstract class MainDetailModel<T>  where T : DetailModel
    {
        [MyColumnName("ID")]
        public virtual int Id { get; set; }
        [MyColumnName("cCode")]
        public virtual string BillCode { get; set; }
        public virtual List<T> Details { get; set; }
    }
    public abstract class DetailModel 
    {
        [MyColumnName("AutoId")]
        public virtual int AutoId { get; set; }
        [MyColumnName("ID")]
        public virtual int MainId { get; set; }
        [MyColumnName("cFree1")]
        public virtual string Free1 { get; set; }
        [MyColumnName("cFree2")]
        public virtual string Free2 { get; set; }
        [MyColumnName("cFree3")]
        public virtual string Free3 { get; set; }
        [MyColumnName("cFree4")]
        public virtual string Free4 { get; set; }
        [MyColumnName("cFree5")]
        public virtual string Free5 { get; set; }
        [MyColumnName("cFree6")]
        public virtual string Free6 { get; set; }
        [MyColumnName("cFree7")]
        public virtual string Free7 { get; set; }
        [MyColumnName("cFree8")]
        public virtual string Free8 { get; set; }
        [MyColumnName("cFree9")]
        public virtual string Free9 { get; set; }
        [MyColumnName("cFree10")]
        public virtual string Free10 { get; set; }
    }
}
